Package vavi.sound.mfi

Examples of vavi.sound.mfi.Track


     * ���ׂẴI�[�f�B�I�f�[�^�`�����N�̍��v�̒������擾���܂��B
     * @since MFi 4.0
     */
    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();
            }
        }
View Full Code Here


     * ���ׂẴI�[�f�B�I�f�[�^�`�����N���擾���܂��B
     * @since MFi 4.0
     */
    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);
            }
        }
View Full Code Here

        // 3. track
        for (int trackNumber = 0; trackNumber < tracksCount; trackNumber++) {
Debug.println("track number: " + trackNumber);
           
            Track track = mff.sequence.createTrack();

            if (trackNumber == 0) {
                doSpecial(headerSubChunks, audioDataChunks, track);
            }
View Full Code Here

        if (mfiTracks.length == 0) {
            throw new InvalidMfiDataException("no tracks");
        }

        Track track = mfiTracks[0];
        for (int j = 0; j < track.size(); j++) {
            MfiEvent event = track.get(j);
            MfiMessage message = event.getMessage();

            if (message instanceof TempoMessage) {
                return ((TempoMessage) message).getTimeBase();
            }
View Full Code Here

     * {@link #sequence} ���� {@link SubMessage} �����o���܂��B
     * {@link SubMessage} �� {@link Sequence#getTracks()}[0] �̐擪�ɂ���̂��d�l
     */
    public HeaderChunk(Sequence sequence) {
        //
        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 SubMessage) {
                SubMessage subChunk = (SubMessage) message;
//Debug.println(infoMessage);
                subChunks.put(subChunk.getSubType(), subChunk);
View Full Code Here

        for (int i = 0; i < mfiTracks.length; i++) {

            midiContext.setMfiTrackNumber(i);
            midiContext.setCurrent(0);

            Track mfiTrack = mfiTracks[i];
           
            for (int j = 0; j < mfiTrack.size(); j++) {
                MfiEvent mfiEvent = mfiTrack.get(j);
                MfiMessage mfiMessage = mfiEvent.getMessage();
               
                midiContext.addCurrent(mfiMessage.getDelta());
               
                if (mfiMessage instanceof MidiConvertible) {
View Full Code Here

TOP

Related Classes of vavi.sound.mfi.Track

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.