Package vavi.sound.smaf.message

Examples of vavi.sound.smaf.message.PitchBendMessage


                            break;
                        case 3: // modulation -  0x00 ~ 0x7f
                            smafMessage = new ModulationMessage(duration, channel, value);
                            break;
                        case 4: // pitch bend - 0x00 ~ 0x40 ~ 0x7f
                            smafMessage = new PitchBendMessage(duration, channel, value << 7);
                            break;
                        case 7: // volume -  0x00 ~ 0x7f
                            smafMessage = new VolumeMessage(duration, channel, value);
                            break;
                        case 0x0a: // pan -  0x00 ~ x040 ~ 0x7f
                            smafMessage = new PanMessage(duration, channel, value);
                            break;
                        case 0x0b: // expression - normal: 0x00 ~ 0x7f
                            smafMessage = new ExpressionMessage(duration, channel, value);
                            break;
                        default:
                            smafMessage = new UndefinedMessage(duration);
Debug.println("unknown 0x00, 0x" + StringUtil.toHex2(e2) + ", 3, " + StringUtil.toHex2(data));
                            break;
                        }
                        break;
                    case 2: // modulation (short) 0x01 ~ 0x0e
                        smafMessage = new ModulationMessage(duration, channel, modulationTable[data]);
                        break;
                    case 1: // pitch bend (short) 0x01 ~ 0x0e
                        smafMessage = new PitchBendMessage(duration, channel, (data * 8) << 7);
                        break;
                    case 0: // expression (short) 0x01 ~ 0x0e
                        smafMessage = new ExpressionMessage(duration, channel, data == 1 ? 0 : data * 8 + 15);
                        break;
                    }
View Full Code Here


Debug.println("reserved: 0xd_: " + StringUtil.toHex2(d1));
            } else if (status >= 0xe0 && status <= 0xef) { // pitch vend message
                int channel = status & 0x0f;
                int lsb = read(is);
                int msb = read(is);
                smafMessage = new PitchBendMessage(duration, channel, (msb << 7) | lsb);
            } else if (status == 0xff) { // eos, nop
                int d1 = read(is);
                switch (d1) {
                case 0x00:
                    smafMessage = new NopMessage(duration);
View Full Code Here

TOP

Related Classes of vavi.sound.smaf.message.PitchBendMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.