ScratchData LogoScratchData
Back to drjay's profile

Sustaining Note by Key Press

DRdrjay•Created April 24, 2014
Sustaining Note by Key Press
6
5
154 views
View on Scratch

Instructions

This program demonstrates how to get Scratch to hold a note for as long as a key is depressed, stopping the sound when the key is released, and allowing multiple notes to be played simultaneously in a chord. These are common issues faced by students in the interdisciplinary computing+music Sound Thinking course that I teach with Prof..Gena Greher of our Music Dept. (and formerly with Prof. Alex Ruthmann, now at NYU). The important things to understand are that (a) every note to be played must be in its own sprite, (b) the sustaining is accomplished by "turning the note on" with a play block that specifies the maximum of 999 beats and "turning the note off" by using the (new in Scratch 2.0) "stop other scripts in this sprite" block, and (c) while you can play a chord with all the "play note" blocks in the same sprite and trigger them individually (either simultaneously or arpeggio style) with a "broadcast," you can't stop them individually unless they're in separate sprites.

Description

by Jesse M. Heines, UMass Lowell heines@cs.uml.edu May 23, 2014

Project Details

Project ID21140353
CreatedApril 24, 2014
Last ModifiedOctober 30, 2015
SharedMay 23, 2014
Visibilityvisible
CommentsAllowed