Discuss Scratch

ronford
Scratcher
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
Hardmath123
Scratcher
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
Scratcher
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
Scratcher
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.ezproxy.canberra.edu.au/projects/11045557/
Ron
Hardmath123
Scratcher
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?
ronford
Scratcher
26 posts

glissando

Hey That's a good idea!
A kind of super legato!
thanks!
Hardmath123
Scratcher
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
Scratcher
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.
Hardmath123
Scratcher
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.
ronford
Scratcher
26 posts

glissando

I tried your suggestion, but I can't seem to get it to work.
http://scratch.mit.edu.ezproxy.canberra.edu.au/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
Scratcher
1000+ posts

glissando

ronford wrote:

I tried your suggestion, but I can't seem to get it to work.
http://scratch.mit.edu.ezproxy.canberra.edu.au/projects/11058636/
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 this.

tosh · slowly becoming a grown-up adult and very confused about it
davidkt
Scratcher
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.

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog
Hardmath123
Scratcher
1000+ posts

glissando

And a good first name: #FordPrefect
davidkt
Scratcher
1000+ posts

glissando

Hardmath123 wrote:

And a good first name: #FordPrefect
That's why I crossed out “last”

Remember when I looked like this? I still do.


Float, my Scratch 2.0 mod | My (somewhat under-construction) blog

Powered by DjangoBB