Started by mr_lou, 15:31, 31 May 10
0 Members and 1 Guest are viewing this topic.
QuoteThe Digitracker sample format is quite simple: 8 bytes: "DT-SAMP1" 1 word: sample length 1 word: repeat start 1 word: repeat length (<=2 means no repeat) [sample length] bytes: sample data The sample data is 7bit unsigned (so #40 is the zero-level, #00 minimum, #7f maximum). Generating SMPs in Basic should be quite simple, you can write the data with OPENOUT"..." and PRINT CHR$(code); statements.
QuoteThere will probably be a problem with small samples of e.g. 127 bytes.The reason is the following: The core-mixer-routine, which is rendering the output-stream out of the three channel-samples, doesn't test, if the end of a sample is reached, as this would require too much CPU time and would lower the frequency and so the quality a lot. So only every 1/50 second the player tests, if the end of a sample has been reached or passed. Depending on the frequency much more than 127 bytes of a sample have been processed, until the player checks for the end. I guess a sample should be at least 1000 bytes or so.
Quote from: mr_lou on 17:56, 02 June 10Small addition to the info about Digitracker samples.
Page created in 0.156 seconds with 36 queries.