Erik Zimmermann Posted June 10, 2022 Share Posted June 10, 2022 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 Quote Link to comment Share on other sites More sharing options...
Fort Apocalypse Posted June 11, 2022 Share Posted June 11, 2022 (edited) Like this? example_kick_snare.bas.bin example_kick_snare.bas Edited June 11, 2022 by Fort Apocalypse Quote Link to comment Share on other sites More sharing options...
Erik Zimmermann Posted June 11, 2022 Author Share Posted June 11, 2022 Yes, Thanks. Try it out today. Quote Link to comment Share on other sites More sharing options...
Erik Zimmermann Posted July 7, 2022 Author Share Posted July 7, 2022 (edited) 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 July 7, 2022 by Erik Zimmermann Quote Link to comment Share on other sites More sharing options...
Erik Zimmermann Posted July 7, 2022 Author Share Posted July 7, 2022 (edited) 27 frames for 130 bpm = 7 frames (4*4) = play 4 Notes in 7 frames Edited July 7, 2022 by Erik Zimmermann Quote Link to comment Share on other sites More sharing options...
KevKelley Posted July 7, 2022 Share Posted July 7, 2022 You should check out the Atari Riff Machine on Alien Bill's website (I think I got that right). Real easy to do what you are looking to do. Quote Link to comment Share on other sites More sharing options...
Fort Apocalypse Posted July 7, 2022 Share Posted July 7, 2022 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 1 Quote Link to comment Share on other sites More sharing options...
Erik Zimmermann Posted July 18, 2022 Author Share Posted July 18, 2022 Hello! Thanks for the information. Will try it right away. saw it too late Had no internet last week. That should solve the timing problem. Bye Erik Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.