midivamp1 pitch control
hello,
i would like to add a external pitch control, like a pot.
can that be done?
best,
J.Baars
i would like to add a external pitch control, like a pot.
can that be done?
best,
J.Baars
Tools and Techniques for Musicians, Composers, and Tinkerers
13 posts · 26378 views
j.baars wrote:yeps, i do have a programmer, and avr studio4 up and running .
it compiles perfectly.
.org $0c00 ; voice2 table
.include "sine_table_2k_signed.inc" ; 8 bit, 2048 sample, sinewavefrom
.include "sine_table_2k_signed.inc"
to
.include "square.inc"pianokeyjoe wrote:So from the answers here,I would not be able to pitch up or down each of the 8 midi vampire 1 modules I want to buy so I can make a very thick fat analog synth with detuned osc(x 8)?Or is the limitation only for physical pitch control OUTSIDE midi control CCs?
mod13: ; frequency sweep
cpi r16,$0d
brne mod14
clr r16
subi r17,$40
sbc r16,r10
sts sweep_l,r17
sts sweep_h,r16
rjmp main ; go back to waitingmod13: ; frequency sweep
cpi r16,$0d
brne mod14
clr r16
subi r17,$40
sbc r16,r10
;sts sweep_l,r17 ;these variables commented out
;sts sweep_h,r16
sts pitch_l,r17 ; new variables added
sts pitch_h,r16
rjmp main ; go back to waiting.equ pitch_l = $0825
.equ pitch_h = $0826clr r16
sts pitch_l,r16 ; set to 0
sts pitch_h,r16voice2_on: ; turn on voice2
lds r30,last_byte ; fetch note from lookup table
sts voice2,r30 ; store note number for turnoff sequence
lsl r30 ; adjust for 2byte fetch
ldi r31,$0c
lpm r16,z+ ; load it into the frequency register
lpm r17,z
lds r30,pitch_l ; fetch pitch bend value - new code
lds r31,pitch_h
add r16,r30 ; add in pitch value to current note - new code
adc r17,r31
cli
sts freq2_l,r16
sts freq2_h,r17
lds r16,pwm_start
sts pwm_depth2,r16 ; reset pwm depth
andi r23,$f3
ori r23,$04 ; set voice2 to attack
ori r24,$04 ; set voice2 trigger
sei
rjmp main ; go back to waiting