Jump to content
IGNORED

How to play Kick and Snare in 16 Step Pattern?


Erik Zimmermann

Recommended Posts

Hello,
 

i try today make an 16 Step Loop with an Kick an Snare. I tried, unfortunately failed.  

16 Steps Pattern.

Kick on 1,5,9,13

Snare on   3,7,11


Kick: 6 Steps

Pitch     :   30 ,30 ,7  ,7  ,7  ,7

Volumes:   15 , 15 , 4  ,   4  ,  0  ,  0
Waveforms: 15 ,15 ,8  ,8  ,8  ,8


Snare:     6 Steps  
Pitch:       5, 27, 8, 5,5,5
Volumes:  15,15, 15, 9, 6, 3
Waveforms:  8,12,  6, 8,  8, 8

I found a Assembly Code Atari 2600 Music Kit 2.0 Created by Paul Slocum. The Sound was perfect. This is not Batari. 

How can me help me?

Bye

Erik

music_kit_2.zip Speed6.bas Speed.bas

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

have problem with calculate correct timming for 4/4 beat, 16 Step Pattern, 120bpm and 60 frames.

https://www.vjamm.com/support_av_bpm.php%3Flang=en.html
27 frames for 130 bpm. I must play 4 ticks per 4 beat.
 
T=Tick, X = Play
1 - 2 - 3 - 4 - 5 - 6- 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15
X                  X                  X                         X
T   T    T    T


Can someone help me? Does anyone know a code example?

Bye

Erik

Edited by Erik Zimmermann
Link to comment
Share on other sites

That site @KevKelley is talking about is: https://alienbill.com/2600/atari-riff-machine/

 

It's pretty cool and may help more than what I'm getting ready to say, I don't know.

 

The bpm may vary depending on the code, so I can't solve that, specifically.

 

But, let's say that you need 4 notes in 7 frames. You could maybe do the following:

  • Make N a counter from 0 to 27.
  • When N equals 0, 6, 13, and 20, do a frame.
  • When N equals 0, 4, 8, 12, 16, 20, and 24, do a note.

This is probably not the most efficient way, but here's an example:

mainloop
 if n=0 || n=6 then gosub music
 if n=13 || n=20 then gosub music
 if n&3=0 then gosub frame
 n=n+1 : if n>27 then n=0
 goto mainloop

Attached an example which slows it down and adds 1000 to score for "note" and 1 to score for "frame".

 

Then, your actual implementation of the music subroutine may increment some other counter and pull from data, etc.

 

The problem is that as soon as you start adding code, it may affect the timing. So, you'll have to play with it.

 

If you can get it to work without this much complexity, that may be better, though. Maybe play the music just a little slower or a little faster?

 

 

do_4_things_per_7_things.bas.bin do_4_things_per_7_things.bas

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...