Package vavi.sound.mfi

Examples of vavi.sound.mfi.MfiEvent


        mfiMessage.setPitchBend(data2 / 2);

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

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


     * @param masterVolume in %
     */
    public static MfiEvent getMasterVolumeEvent(int masterVolume) {
        int realMasterVolume = (int) (masterVolume * maxMasterVolume / 100f);
        MfiMessage message = new MasterVolumeMessage(0x00, 0xff, 0xb0, realMasterVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

     *
     * @param start true: start, false: end
     */
    public static MfiEvent getCuePointEvent(boolean start) {
        MfiMessage message = new CuePointMessage(0x00, start ? 0x00 : 0x01);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

    }

    /** */
    public static MfiEvent getTempoEvent(float time, int sampleRate) {
        TempoMessage message = getTempoMessage(time, sampleRate);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

     */
    static int getAudioDatumLength(Sequence sequence) {
        int audioDataLength = 0;
        Track track = sequence.getTracks()[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();
            if (message instanceof AudioDataMessage) {
                audioDataLength += message.getLength();
            }
        }
Debug.println("audioDataLength: " + audioDataLength);
View Full Code Here

    /**
     * older version
     * @return TempoMessage is always the same instance
     */
    public static MfiEvent getTempoEvent() {
        return new MfiEvent(tempoMessageOld, 0l);
    }
View Full Code Here

     */
    private List<AudioDataMessage> getAudioDatum() {
        List<AudioDataMessage> result = new ArrayList<AudioDataMessage>();
        Track track = sequence.getTracks()[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();
            if (message instanceof AudioDataMessage) {
                result.add((AudioDataMessage) message);
            }
        }
        return result;
View Full Code Here

                                  List<AudioDataMessage> audioDataChunks,
                                  Track track) {
        // Track 0 �̐擪�� SubMessage ����������
        // TODO HeaderChunk �ł��ׂ��\���H�H�H
        for (SubMessage headerSubChunk : headerSubChunks.values()) {
            track.add(new MfiEvent(headerSubChunk, 0l));
        }

        // Track 0 �� header sub chunks �̎��� AudioDataMessage ����������
        for (AudioDataMessage audioDataChunk : audioDataChunks) {
            // TODO {@link MetaMessage} �ɕϊ��H�H�H
            track.add(new MfiEvent(audioDataChunk, 0l));
        }
    }
View Full Code Here

        mfiMessage.setModulationDepth(data2 / 2);

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

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

     * @param masterVolume in %
     */
    public static MfiEvent getMasterVolumeEvent(int masterVolume) {
        int realMasterVolume = (int) (masterVolume * maxMasterVolume / 100f);
        MfiMessage message = new MasterVolumeMessage(0x00, 0xff, 0xb0, realMasterVolume);
        return new MfiEvent(message, 0l);
    }
View Full Code Here

TOP

Related Classes of vavi.sound.mfi.MfiEvent

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.