A String Music Method Tutorial

nice

1 Like

how is it that i thought of the exact same thing

I made a mistake here, for waiting it should be:

wait seconds ((60 / self(tempo)) * self(NoteLength)
2 Likes

@Nobody might just be me, but I think the notes are being played slightly slower then they should be.

2 Likes

https://c.gethopscotch.com/p/11fryat9xi

@Nobody notes lag behind - same as before.

1 Like

you need to do both in 1 object for this method
which can get confusing, if you want to do a bass/treble thing I’d recommend the when method

1 Like

Ah, okay. So how would I play multiple with this method?

1 Like

basically what you want to do is mush the bass and treble together into 1 string that is compiled by 1 object

does that make sense?

1 Like

Okay, so just put the bass notes in between the treble notes when they should be played?

1 Like

yep

1 Like

Yeah, not working. I think I’ll take your advice and try another method.

1 Like

if you still have it can I have a link to see?

1 Like

Basically what I did was:

Note2.000; (Treble)
Note
0.500; (Bass)

Supposed to play at the same time, they didn’t.

1 Like

if you want them to play at the same time you’d do
Note*0.500Note

to play notes at the same they have to be on the same line, I don’t think I really explained that in the op

1 Like

So for example, 2C01.0003C00.500;?

Oop markdown

1 Like

more like:

2C0*1.0002E0;
2C0*0.500;
...

it makes timing confusing, but if you know timing well then it isn’t too hard

2 Likes

Yeah, not that hard.

It’s still noticeable during a slow song but other then that it sounds like it’s actually being played at the same time.

3 Likes

Bumped

I think I made a much more simplified version of the music string method. It’s explanation can be found in the reply of the link below:

Video of “My Version of the Music String Method”

You can also copy and paste the values of the variables into the play note block itself to simplify its code even more.

Pros:
Code efficient

Cons:
Hard to understand because it’s based on the number of the note, not the note’s name (Cb)

1 Like

The other con is mine does not support multiple notes at once… yet…

1 Like

Hehe

I finally did it! I added multi-note support (up to 3 notes)

Also, if the notes don’t range from 48 to 84, it will be treated as a rest

2 Likes