Permalink
Switch branches/tags
Nothing to show
Commits on Jun 28, 2008
  1. added another example app - this time illustrating that it's possible…

    samaaron committed Jun 28, 2008
    … to specify which keys loop_on_button_sustain will respond to (in this case any key on row 0)
  2. added the ability to light rows and columns with arrays of patterns (…

    samaaron committed Jun 28, 2008
    …correctly deals with the 128, and therefore hopefully the 256)
  3. remove debugging output

    samaaron committed Jun 28, 2008
  4. New feature - the ability to specify particular buttons to listen to …

    samaaron committed Jun 28, 2008
    …as a parameter to the methods. For example, on_button_press(0,1) will only call the block when button x=0, y=1 is pressed. It's also possible to use :any instead of a specific integer to indicate a whole row or column. Also, many internal method renames, and new useful coord class.
  5. refactored midi messages into their own files and fixed but in the mi…

    samaaron committed Jun 28, 2008
    …di_out class which was stopping the midi from being turned off correctly
  6. renamed key_up and key_down methods to any_button_release and any_but…

    samaaron committed Jun 28, 2008
    …ton_press respectively. Also fixed minor bug in rebound where the lights weren't turned off when the led stops bouncing
Commits on Jun 27, 2008
Commits on Jun 26, 2008
  1. converting midi messages to java objects in the preparation phase to …

    samaaron committed Jun 26, 2008
    …reduce computation needed on flush! This code seriously needs a lot of refactoring - particularly in tandom with the javamidi.rb file. Also, not all notes seem to be turned off - so need to look into that too. However, big strides are being made with the timeliness which is great news :-)
  2. added the ability to prepare notes in the midi object for flushing on…

    samaaron committed Jun 26, 2008
    … the beat later. Updated press coffee and rebound to use this new feature. Things are getting timelier still :-) Also changed timing keys to bpm (beats per minute) prepare and on_tick to emphasise how the blocks should be used.
  3. remove unnecessary comments

    samaaron committed Jun 26, 2008
  4. further optimised the timing algorithm and added it as Monomer::Core:…

    samaaron committed Jun 26, 2008
    …:Timer refactored the apps around this new addition, and also added a few tweaks to the midi out class to allow for periods of notes to be played (rather than having to explicitly send on/off messages).
Commits on Jun 25, 2008
  1. remove unecessary @sleep variable

    samaaron committed Jun 25, 2008
  2. moved method into the configure block to stop sinatra whining that it…

    samaaron committed Jun 25, 2008
    …'s constantly redifining the same method
  3. sorted apps into directories

    samaaron committed Jun 25, 2008
  4. added timing results to test file, and also reverted some changes to …

    samaaron committed Jun 25, 2008
    …the listener that were made to facilitate the test
  5. did a bunch of timing tests on press coffee, and discovered that slee…

    samaaron committed Jun 25, 2008
    …p isn't too bad after all, but timely_repeat is more accurate. The results are as follows:
    
    with sleep
    {:sum=>156.65100000000018,
     :mean=>0.15665100000000018,
     :stddev=>0.00917842265546986,
     :min=>0.145,
     :max=>0.334,
     :median=>0.155,
     :count=>1000}
    timely block with just update patterns
    {:sum=>166.29400000000027,
     :mean=>0.16629400000000027,
     :stddev=>0.025912565002813286,
     :min=>0.14200000000000002,
     :max=>0.406,
     :median=>0.158,
     :count=>1000}
    all in one timely block
    {:sum=>141.85500000000025,
     :mean=>0.14185500000000026,
     :stddev=>0.029510283492908546,
     :min=>0.02,
     :max=>0.312,
     :median=>0.14100000000000001,
     :count=>1000}
    timely repeat
    {:sum=>144.28400000000033,
     :mean=>0.14428400000000033,
     :stddev=>0.007895675125388952,
     :min=>0.124,
     :max=>0.246,
     :median=>0.14300000000000002,
     :count=>1000}
  6. allow iterations to 'warm-up' before issuing warnings, and reducing s…

    samaaron committed Jun 25, 2008
    …leep ratio - this is to give JRuby enough time to kick in the JIT optimisations
  7. more accurate time management than using sleep. Now to work out how t…

    samaaron committed Jun 25, 2008
    …o integrate this into monomer...
Commits on Jun 24, 2008
  1. modified press coffee to be monome type agnostic. Just need to add mo…

    samaaron committed Jun 24, 2008
    …dify the patterns for a 256
  2. updated press coffee to play rhythms in sync with each other. This se…

    samaaron committed Jun 24, 2008
    …ems like a lot of hard work with monomer - I must be missing a trick here...
Commits on Jun 23, 2008
  1. added very basic (read unsynchronised) version of press cafe by stret…

    samaaron committed Jun 23, 2008
    …ta. Needs polishing, as do the modifications added to monomer for lighting columns. Also, started hitting issues with multiple threads accessing a shared array - need to be more careful, and think of a decent solution.
  2. refreshed TODO list

    samaaron committed Jun 23, 2008
  3. renamed internal methods params to reflect that the thread name is be…

    samaaron committed Jun 23, 2008
    …ing passed, not the thread itself
  4. rename LED internal variable to indicate that it represents the threa…

    samaaron committed Jun 23, 2008
    …d's name, not the actual thread itself