Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » glissando
- ronford
-
26 posts
glissando
Does anyone know how to program a glissando on one note?
that is, for examble, changing the note from an A to a B while one note is played?
Ron
that is, for examble, changing the note from an A to a B while one note is played?
Ron
- Hardmath123
-
1000+ posts
glissando
No, sorry, that's not possible with the blocks we currently have in Scratch. If it's just a couple of notes you know beforehand, you can import mp3's or wavs into Scratch. 

- Hardmath123
-
1000+ posts
glissando
Sorry, by glissando do you mean a continuous effect (like bending a note on a guitar) or a discrete effect (like sliding your hand across a piano)? The latter is possible.
- ronford
-
26 posts
glissando
Yes, I'm looking for a way to bend notes like on a guitar.
I want to make a program that imitates bird song, with all the different elements, and variation within an artificial intelligence framework.
One of the birdsong elements in a glissando.
My best solution up until now is this:
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11045557/
Ron
I want to make a program that imitates bird song, with all the different elements, and variation within an artificial intelligence framework.
One of the birdsong elements in a glissando.
My best solution up until now is this:
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11045557/
Ron
- Hardmath123
-
1000+ posts
glissando
Sounds interesting! Clearly discrete notes won't work too well. Maybe making one note start slightly before the previous ends will make a better transition?
- Hardmath123
-
1000+ posts
glissando
No problem. If you have trouble implementing it, let me know: there's a neat trick to get concurrent notes in Scratch.
- ronford
-
26 posts
glissando
I would be very interested if you have some tips.
this is just one part of the vocabulary that I want to build up.
And then try to put them together into a artificially inteligent scratchbird.
this is just one part of the vocabulary that I want to build up.
And then try to put them together into a artificially inteligent scratchbird.
- Hardmath123
-
1000+ posts
glissando
You need to use clones, because when you clone you create a new thread. See my latest project ("Orientale") for a slightly more complex example. Essentially, you need a list of all pitches (generated beforehand). Then clone a sprite, changing a local variable each time right before you clone. Local variables get cloned along with the sprite (unlike global variables), so you keep track of which note to play, and when to play it, using a local variable.
I'm sorry if that made very little sense, but it's kind of hard to explain without scripts. Feel free to ask me if you don't grok any script in the project above.
I'm sorry if that made very little sense, but it's kind of hard to explain without scripts. Feel free to ask me if you don't grok any script in the project above.

- ronford
-
26 posts
glissando
I tried your suggestion, but I can't seem to get it to work.
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11058636/
Among other problems, the midi sounds go beserk after a few repetitions…
For an unknown reason.
Though that my not be the only problem…
I think I may be barking up a wrong tree…
unless you have a suggestion.
It would make life alot easier if scratch put a transposer in the effects selection of the sounds.
But ya can't have everything
Ron
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11058636/
Among other problems, the midi sounds go beserk after a few repetitions…
For an unknown reason.
Though that my not be the only problem…
I think I may be barking up a wrong tree…
unless you have a suggestion.
It would make life alot easier if scratch put a transposer in the effects selection of the sounds.
But ya can't have everything
Ron
- blob8108
-
1000+ posts
glissando
I'm not entirely sure what you're trying to do — the “create clone” block seems to be your problem. But the concept seems good: try I tried your suggestion, but I can't seem to get it to work.this.
http://scratch.mit.edu.ezproxyberklee.flo.org/projects/11058636/
- davidkt
-
1000+ posts
glissando
I don't think there's a way with the MIDI blocks we have, but the theoretical way would be to gradually increase the note by a little less than a half step.
P.S. We have a horrible mayor named Rob Ford… I guess Ford is a popular last name.
P.S. We have a horrible mayor named Rob Ford… I guess Ford is a popular last name.
- davidkt
-
1000+ posts
glissando
That's why I crossed out “last” And a good first name: #FordPrefect
- Discussion Forums
- » Advanced Topics
-
» glissando