I needed to use a selection of functions to make the sampler idea work. The first was to get the controller to be recognised by Max/Msp. I needed to use the 'HI' object so that I could choose from the available input devices connected to the computer. Once this step was complete and the guitar controller was found it was a case of finding out which button was which. To do this I had to create a 'spray' object and enter a number of outputs to find all the controllers buttons by connecting them to number objects thorugh trial and error. Once all buttons were found I had to come up with a way of connecting them so that they would activate when combined with the guitars strummer and linked the combinations to individual 'sfplay' objects that would load and play a sound clip when a certain button combo was selected. This is where the problems started to unfold. I managed to make the guitar play a sound file back when a single coloured button and the strummer where pressed together using the 'select' and '+' objects which added the two button values together and the outcome would run through the select, which was set the same as the two button press, if these two values were different then it would send a reject bang and the file wouldn't play, indicating the two buttons had not been pressed. This worked fine, but when a combination using two coloured buttons (one of which being the original coloured button) it would play the new sound clip and pick up the old sound file and overlay it.
After some searching through tutorials and forums I found a way in which each button combination could be stored individually and each sent out to a bang then linked to an individual sound file. This was done by using the 'select' object again for each coloured button value as well as the strummer value and by converting each of the values from binary to numerical I could send each of the combinations out to its own 'bang' then into its each 'sfplay' object to play a new sound for every button combo.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment