Package vavi.sound.smaf

Examples of vavi.sound.smaf.SmafEvent


        smafMessage.setModulation(data2);

        context.setBeforeTick(track, midiEvent.getTick());

        return new SmafEvent[] {
            new SmafEvent(smafMessage, midiEvent.getTick())
        };
    }
View Full Code Here


        smafMessage.setPanpot(data2);

        context.setBeforeTick(track, midiEvent.getTick());

        return new SmafEvent[] {
            new SmafEvent(smafMessage, midiEvent.getTick())
        };
    }
View Full Code Here

        props.put("colorType", colorType);
        props.put("timeBase", durationTimeBase);

        MetaMessage metaMessage = new MetaMessage();
        metaMessage.setMessage(MidiConstants.META_MACHINE_DEPEND, props);
        events.add(new SmafEvent(metaMessage, 0l));

        return null; // TODO
    }
View Full Code Here

                int delta = context.retrieveAdjustedDelta(track, currentTick);

                EndOfSequenceMessage smafMessage = new EndOfSequenceMessage();
                smafMessage.setDuration(delta);

                smafEvents[track] = new SmafEvent(smafMessage, midiEvent.getTick());
            }
        }

        return smafEvents;
    }
View Full Code Here

        context.setBeforeTick(track, midiEvent.getTick());
//Debug.println(channel + ": " + StringUtil.toHex2(data1) + ", " + StringUtil.toHex2(changeVoiceMessage.getProgram()) + ", " + changeBankMessage.getBank());

        return new SmafEvent[] {
            new SmafEvent(changeBankMessage, midiEvent.getTick()),
        };
    }
View Full Code Here

        smafMessage.setPitchBend(data2);

        context.setBeforeTick(track, midiEvent.getTick());

        return new SmafEvent[] {
            new SmafEvent(smafMessage, midiEvent.getTick())
        };
    }
View Full Code Here

        dos.writeBytes(getType());
        dos.writeInt(getDataLength());
Debug.println("track: " + trackNumber + ": " + getDataLength());
        for (int j = 0; j < track.size(); j++) {
            SmafEvent event = track.get(j);
            SmafMessage message = event.getMessage();
            if (!SmafFileFormat.isIgnored(message)) {
                byte[] data = message.getMessage();
                dos.write(data, 0, data.length);
            }
        }
View Full Code Here

     */
    public int getDataLength() {
        int trackLength = 0;

        for (int j = 0; j < track.size(); j++) {
            SmafEvent event = track.get(j);
            SmafMessage message = event.getMessage();
            if (!SmafFileFormat.isIgnored(message)) {
                trackLength += message.getLength();
            }
        }

View Full Code Here

        smafMessage.setVolume(shortMessage.getData2());

        context.setBeforeTick(track, midiEvent.getTick());

        return new SmafEvent[] {
            new SmafEvent(smafMessage, midiEvent.getTick())
        };
    }
View Full Code Here

            return null;
        }
        SmafEvent[] smafEvents = new SmafEvent[nopLength];
        for (int i = 0; i < nopLength; i++) {
            NopMessage smafMessage = new NopMessage(255);
            smafEvents[i] = new SmafEvent(smafMessage, 0l)// TODO 0l
            // 255 �� �����ɂ��炵�Ă���
            incrementBeforeTick(track, 255);
        };

//Debug.println(nopLength + " nops inserted");
View Full Code Here

TOP

Related Classes of vavi.sound.smaf.SmafEvent

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.