Examples of addPhrase()


Examples of jm.music.data.Part.addPhrase()

        // add phrase to the score as a new part
        if (phr != null) {
            currentChannel++;
            if (currentChannel > 15) currentChannel = scoreChannels;
            Part p = new Part("Sketch Part", 0, currentChannel);
            p.addPhrase(phr);
            score.addPart(p);
        }
    }

    private void quickSort(double[][] storer, int left, int right) {
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

        );

        Score s = new Score();
        Part p = new Part();
        s.addPart(p);
        p.addPhrase(phrase);
    }

    public boolean isTrebleStave() {
        return getProperty(STAVE_TYPE).equals(TREBLE_STAVE);
    }
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

        try {
            JmMidiPlayer midiPlayer = new JmMidiPlayer();
            Score sc = new Score();
            Part p = new Part();
            sc.addPart(p);
            p.addPhrase(phrase);
            Write.midi(sc, midiPlayer);
            midiPlayer.play();
            midiPlayer.close();
        } catch (MidiUnavailableException ex) {
            System.out.println(
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

            Track smfTrack = (Track) aEnum.nextElement();
            Vector evtList = smfTrack.getEvtList();
            Vector phrVct = new Vector();
            sortEvents(score, evtList, phrVct, smf, part);
            for (int i = 0; i < phrVct.size(); i++) {
                part.addPhrase((Phrase) phrVct.elementAt(i));
            }
            score.addPart(part);
            score.clean();
        }
    }
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

            }
        }
        Element[] elements = element.getChildren();
        for (int i = 0; i < elements.length; i++) {
            if (XMLStyles.isValidPhraseTag(elements[i].getName())) {
                returnPart.addPhrase(elementToPhrase(elements[i]));
            }
        }
        return returnPart;
    }
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

            }
        }
        Element[] elements = element.getChildren();
        for (int i = 0; i < elements.length; i++) {
            if (XMLStyles.isValidPhraseTag(elements[i].getName())) {
                returnPart.addPhrase(elementToPhrase(elements[i]));
            }
        }
        return returnPart;
    }
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

      Track smfTrack = (Track) aEnum.nextElement();
      Vector evtList = smfTrack.getEvtList();
      Vector phrVct = new Vector();
      sortEvents(score,evtList,phrVct,smf,part);
      for(int i=0;i<phrVct.size();i++){
          part.addPhrase((Phrase)phrVct.elementAt(i));
      }
      score.addPart(part);
      score.clean();
    }
  }
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

        );

        Score   s = new Score();
        Part    p = new Part();
        s.addPart(p);
        p.addPhrase(phrase);                    
    }               
   
    public boolean isTrebleStave() {
        return getProperty(STAVE_TYPE).equals(TREBLE_STAVE);            
    }       
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

        double initialEndTime = maxEndTime*(t+1);
        for(int j=0;j<numbOfPhrases;j++){
          Phrase phr = (Phrase) p.getPhraseList().elementAt(j);
          Phrase phrCopy = phr.copy();
          phrCopy.setStartTime(initialEndTime+phr.getStartTime());
          p.addPhrase(phrCopy);
        }
      }
    }
  }
 
View Full Code Here

Examples of jm.music.data.Part.addPhrase()

            Track smfTrack = en.nextElement();
            Vector evtList = smfTrack.getEvtList();
            Vector phrVct = new Vector();
            sortEvents(evtList, phrVct, smf, part);
            for (int i = 0; i < phrVct.size(); i++) {
                part.addPhrase((Phrase) phrVct.elementAt(i));
            }
            score.addPart(part);
            score.clean();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.