abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Measure Loop

Open db5050 opened this issue 4 years ago • 6 comments

I use audio for play. Somehow, I couldn't make it ring between two measures. There is a setprogress function. The thing that might work for me here is the beat. However, this method will not give accurate results when there is more than one rhythm in the song. The other percent and millisecond options are already unsuitable for the note. Actually I want something simple. For example, I want to ring between measure 5 and measure 15. Can I do this with abcjs? (Assuming there are 5/8.4/4.7/8 rhythms in a song and lots of repeat marks)

db5050 avatar Jul 27 '21 16:07 db5050

I'm not sure what you mean by "ring". Do you mean playing a really long note? What instrument? There is a fixed length to the soundfont notes so it probably won't work to try to play a note more than a few seconds. For some instruments that don't have attack or decay the soundfont could be repeated but that doesn't happen yet.

paulrosen avatar Jul 31 '21 09:07 paulrosen

Ekran Alıntısı How can I ring between the 3rd and 5th measures?

db5050 avatar Jul 31 '21 09:07 db5050

Do you mean "play the d note for the whole 3rd, 4th, and 5th measures"? Sorry to not understand.

paulrosen avatar Jul 31 '21 09:07 paulrosen

no. I don't know how to explain it any other way. It's not about playing notes, that's what I want. When I press the play button, all the 3rd measure, all the 4th measure, all the 5th measure will be played. Then it will return to the 3rd measure and this cycle will continue continuously. This feature is necessary so that students can continuously study the measure they have chosen.

db5050 avatar Jul 31 '21 09:07 db5050

Oh, I see - that is probably a bug. I'll look into it. That should work if there isn't a time sig change but I don't think I tested what you have.

paulrosen avatar Jul 31 '21 09:07 paulrosen

Any progress on this issue? Actually, this will work for me. If I can see the "beat number" value of the note I clicked, I can repeat the parts I want.

db5050 avatar Sep 10 '21 21:09 db5050