We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it seems that midi event 0xFX 0x51 can't effect playing speed. it should change us/tick so the music speed change.
In my java midi-beep project: switch (e.getMessage().getStatus() & 0xF0) { /* Key down/up Program change cases are leaved out here*/ case 0xF0: if (e.getMessage().getStatus() != 0xFF) { System.out.println(); break; } switch (e.getMessage().getMessage()[1]) { case 0x58: System.out.println((nun = e.getMessage().getMessage()[2]) + "/" + (div = e.getMessage().getMessage()[3]) + " " + e.getMessage().getMessage()[4]); break; case 0x51: long newTickInMicroSec = (((long) e.getMessage().getMessage()[5]) & 0xFF | (((long) e.getMessage().getMessage()[4]) & 0xFF) << 8 | (((long) e.getMessage().getMessage()[3]) & 0xFF) << 16) / seq.getResolution(); time = now - (now - time) * 1000 / TickInMicroSec * newTickInMicroSec / 1000; System.out.println("Old us/Tick=" + TickInMicroSec + " , and new us/Tick=" + newTickInMicroSec); TickInMicroSec = newTickInMicroSec; break; case 0x7F: System.out.println("Sending data to device(s)"); break; default: System.out.println(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
it seems that midi event 0xFX 0x51 can't effect playing speed. it should change us/tick so the music speed change.
In my java midi-beep project:
switch (e.getMessage().getStatus() & 0xF0)
{
/* Key down/up Program change cases are leaved out here*/
case 0xF0:
if (e.getMessage().getStatus() != 0xFF)
{
System.out.println();
break;
}
switch (e.getMessage().getMessage()[1])
{
case 0x58:
System.out.println((nun = e.getMessage().getMessage()[2]) + "/" + (div = e.getMessage().getMessage()[3]) + " " + e.getMessage().getMessage()[4]);
break;
case 0x51:
long newTickInMicroSec = (((long) e.getMessage().getMessage()[5]) & 0xFF | (((long) e.getMessage().getMessage()[4]) & 0xFF) << 8 | (((long) e.getMessage().getMessage()[3]) & 0xFF) << 16) / seq.getResolution();
time = now - (now - time) * 1000 / TickInMicroSec * newTickInMicroSec / 1000;
System.out.println("Old us/Tick=" + TickInMicroSec + " , and new us/Tick=" + newTickInMicroSec);
TickInMicroSec = newTickInMicroSec;
break;
case 0x7F:
System.out.println("Sending data to device(s)");
break;
default:
System.out.println();
}
}
The text was updated successfully, but these errors were encountered: