1 /** 2 * This file is part of the Web Enabled Audio and Sound Enhancement Library (aka the Weasel audio library) Copyright 2011 - 2013 Warren Willmey. It is covered by the GNU General Public License version 3 as published by the Free Software Foundation, you should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. 3 */ 4 5 if( undefined == window.weasel ) window.weasel = {}; 6 7 // --------------------------------------------------------------------------- 8 /** Object containing constants that a The Jungle Commands Soundtracker 2 module requires, in 9 * addition to those defined in FormatUltimateSoundTracker121 & FormatDOCSoundTracker9. 10 * 11 * @constructor 12 * @const 13 */ 14 weasel.FormatTJCSoundTracker2 = 15 { 16 /** The supported effects in a The Jungle Commands Soundtracker 2 modules and: 17 * # Def Jam Soundtracker 3 18 * # Alpha Flight Soundtracker 4 19 * # DOC Soundtracker 3 20 * # DOC Soundtracker 4 21 * # DOC Soundtracker 6 22 * 23 * @const 24 * @enum {int} 25 */ 26 Effects: { 27 Arpeggio: 0 28 , PitchbendUp: 1 29 , PitchbendDown: 2 30 , ModulateVolume: 3 // Unsupported. 31 , ModulatePeriod: 4 // Unsupported. 32 , ModulateVolumePeriod: 5 // Unsupported. 33 , ModulateVolumePitchbendUp: 6 // Unsupported. 34 , ModulatePeriodPitchbendUp: 7 // Unsupported. 35 , ModulateVolumePeriodPitchbendUp: 8 // Unsupported. 36 , ModulateVolumePitchbendDown: 9 // Unsupported. 37 , ModulatePeriodPitchbendDown: 10 // Unsupported. 38 , ModulateVolumePeriodPitchbendDown:11 // Unsupported. 39 , Volume: 12 40 , SlideVolume: 13 41 , AutoSlide: 14 42 } 43 44 , MaxNotePeriod : 113 45 , MinNotePeriod : 856 46 47 /** The maximum size of a sample (in bytes) (set to 32k due to finding custom samples greater than 9900 limit set in Ultimate Soundtracker 1.21). 48 * @const 49 * @type {int} 50 */ 51 , MaxSampleSize: 32768 52 };