Discuss Scratch

igenoxnos
Scratcher
9 posts

How to convert sound to list

Hello I have a sound effect but i want to make it play using a list of note numbers and i dont want to do this manualy: this is what i have:
(Music note custom extention play)
add [The sound i want to play and all the note numbers] to [list v]
Paddle2See
Scratch Team
1000+ posts

How to convert sound to list

Interesting! So…are you talking about trying to use note blocks to sound like something other than the instruments they are recorded from? It might be possible to take a random sound effect and break it down to it's base frequencies (using Fourier Series?) and reconstruct it using superposed flute notes (flute is pretty close to a pure sinusoid, I think). No idea how you would go about doing this - but it might be possible.
cookieclickerer33
Scratcher
1000+ posts

How to convert sound to list

You could use custom blocks, a counter variable, and a repeat loop to run each thing in each list
set [Time v] to [1]
repeat (length of [beats v])
play note (item (Time) of [notes v]) for (item (Time) of [beats v]) beats
change [Time v] by (1)
end

Paddle2See wrote:

Interesting! So…are you talking about trying to use note blocks to sound like something other than the instruments they are recorded from? It might be possible to take a random sound effect and break it down to it's base frequencies (using Fourier Series?) and reconstruct it using superposed flute notes (flute is pretty close to a pure sinusoid, I think). No idea how you would go about doing this - but it might be possible.
Rare footage of paddle not replying to a topic just to close it

Last edited by cookieclickerer33 (Nov. 14, 2023 14:17:10)

ajskateboarder
Scratcher
1000+ posts

How to convert sound to list

cookieclickerer33 wrote:

Paddle2See wrote:

Interesting! So…are you talking about trying to use note blocks to sound like something other than the instruments they are recorded from? It might be possible to take a random sound effect and break it down to it's base frequencies (using Fourier Series?) and reconstruct it using superposed flute notes (flute is pretty close to a pure sinusoid, I think). No idea how you would go about doing this - but it might be possible.
Rare footage of paddle not replying to a topic just to close it
Even more rare footage of paddle being a music chad
meunspeakable
Scratcher
100+ posts

How to convert sound to list

Paddle2See wrote:

Interesting! So…are you talking about trying to use note blocks to sound like something other than the instruments they are recorded from? It might be possible to take a random sound effect and break it down to it's base frequencies (using Fourier Series?) and reconstruct it using superposed flute notes (flute is pretty close to a pure sinusoid, I think). No idea how you would go about doing this - but it might be possible.
This has actually been done already with quite high quality:

https://scratch.mit.edu/projects/683387044/

Powered by DjangoBB