This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

MIDI - creatng a player piano type app  RSS feed

Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My apologies if this is a repeat post - I think I timed out the first time.

The simplest example of what I want to do would be a 'player piano' that would show graphically what notes are being played in a midi sequence. 'They' tell me that I can't have a listener for note events but I can have one for controller events. So, I am looking a doing something similar to that done in "minimusicplayer3" from the Head Fisrt book, where controller events are inserted into the file to trigger the event listener.

My plan is to go through the sequence inserting a controller event along with each note event. While doing that I would create my own parallel psuedo sequence with the information I needed to control my graphics. I would use the event listener to synchonize my progress thru the psuedo sequence.

Is there a better way? Does my plan make any sense? Do you see any pitfalls to dodge? Would creating my psuedo sequence use too much storage?

All comments and ideas are welcome. Thanks in advance.


PS - the actual app will be a virtual 'poly-chromatic' harmonica to put on my website at
Posts: 3281
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Doug,

Sounds reasonable to me, you'll also want to search this forum for Music/Midi threads, there were a couple of people working on similar things 3-4 months back if I remember correctly.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!