exagonal

Joined: Sep 06, 2013 Posts: 21 Location: ITALY
|
Posted: Thu Oct 16, 2014 2:32 pm Post subject:
BOSS DR 110 CLONE Subject description: BOSS DR 110 CLAP TRIGGERING |
 |
|
Hello everyone!
I started working on a clone of the BOSS DR-110, famous analog drum portable, even economic, if you want.
Obviously, for these reasons, the manufacturer has decided to simplify the space and content, obtaining good results.
Regarding some sounds, such as handclap, it could save some component by changing the method of triggering, ie, to achieve the classic sound of multiple hand-clapping, they opted for a sequence of separate trigger: trigger arriving in the first input, three pulse 1mS spaced 10mS, while in the second input, always after 10mS from the third, it arrives a quarter, as explained in the drawing that enclose.
Now, since I want to drive all with a MIDI TO TRIGGER with the classical positive impulses, I would like to resolve the issue of the clap with a PIC, programming in such a way that upon receipt of a positive pulse at the input, it provides two outputs using the pulse sequence explained.
Now, to put a part in the CHIP program, with the pic does not do anything else, but I have a programmer and I intend to use that, someone would know to develop this simple routine ??
I have found the net in the basic program for PICAXE, and it should be this:
;******************************************Constant definitions*********************************************
symbol debounce = 50 ; switch debounce for 50msec
symbol pushbutton = Input0
symbol CLP1 = Output0
symbol CLP2 = Output1
;******************************************Main Program*****************************************************
pgm:
high CLP1 ;set outputs high as DR Clap triggers on low logic
high CLP2
sw_off: ;loop here if no input
if pushbutton = 0 then sw_off
low CLP1 ;pulse 1
pause 1
high CLP1
pause 10
low CLP1 ;pulse 2
pause 1
high CLP1
pause 10
low CLP1 ;pulse 3
pause 1
high CLP1
pause 10
low CLP2 ;pulse for delay
pause 1
high CLP2
sw_on:
if pushbutton = 1 then sw_on
pause debounce
goto pgm ;repeat
| Description: |
|
| Filesize: |
56.52 KB |
| Viewed: |
6464 Time(s) |

|
|
|