26 March 2012, 23:07 | #41 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
|
27 March 2012, 00:07 | #42 |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
|
27 March 2012, 00:15 | #43 | |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Quote:
Getting through with a solution to this "problem" can end up in me being able to realize at least two applications for the miggy, whenever my coding skills are up to scratch. |
|
30 March 2012, 19:36 | #44 | |
Registered User
Join Date: Aug 2008
Location: Salisbury
Posts: 744
|
Quote:
Code:
;-------------- Sets hardware period value SetPitchCtrl macro move PitchCtrl+((\1-1)<<1),d0 ;read pitch offset sub #PitchCtrlSize>>1,d0 add d0,d0 ;scale pitch_ctrl range add audchan\1temp+n_period,d0 move d0,$dff0a6+((\1-1)<<4) ;Set hardware period endm SetNewPitchCtrl move.l d0,-(sp) SetPitchCtrl 1 SetPitchCtrl 2 SetPitchCtrl 3 SetPitchCtrl 4 move.l (sp)+,d0 rts |
|
31 March 2012, 01:30 | #45 | |
Registered User
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 1,153
|
Quote:
However, it's *adding* a constant to the period rather than scaling it, so (without having tried it) I think it's going to cause some pretty horrible tuning errors! If you want to keep the pitch adjustment in sync with a tempo-change, then I think you want to be doing something more like this: Code:
SetPitchCtrl macro move.w audchan\1temp+n_period,d0 mulu originaltempo,d0 divu newtempo,d0 move.w d0,$dff0a6+((\1-1)<<4) ;Set hardware period endm |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
App for Workbench 3.1 to play mp3 or mod in background while game loaded? (WinUAE) | dex | request.Apps | 9 | 16 July 2012 22:45 |
Amiga game mod player for PC aka how to play BP files | wlcina | support.Other | 6 | 16 March 2012 00:03 |
How To Make Audio .Mod play in a PC AutoRun Maker | k2uphill | support.Apps | 1 | 26 July 2007 20:57 |
Unable To Play Mod Files In DopuS | Mag1c1an | support.Apps | 6 | 06 July 2006 16:52 |
Tracker/Playroutine to play tubular.mod | Photon | Coders. General | 15 | 10 March 2006 21:09 |
|
|