1 /* 2 * Copyright (C) 2019-2020 Rerrah 3 * 4 * Permission is hereby granted, free of charge, to any person 5 * obtaining a copy of this software and associated documentation 6 * files (the "Software"), to deal in the Software without 7 * restriction, including without limitation the rights to use, 8 * copy, modify, merge, publish, distribute, sublicense, and/or sell 9 * copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following 11 * conditions: 12 * 13 * The above copyright notice and this permission notice shall be 14 * included in all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 18 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 20 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 21 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 23 * OTHER DEALINGS IN THE SOFTWARE. 24 */ 25 26 #pragma once 27 28 enum CommandId : int 29 { 30 // 0x1*: Instrument list 31 AddInstrument = 0x10, 32 RemoveInstrument = 0x11, 33 ChangeInstrumentName = 0x12, 34 CloneInstrument = 0x13, 35 DeepCloneInstrument = 0x14, 36 SwapInstruments = 0x15, 37 38 // 0x2*, 0x3*: Pattern editor 39 SetKeyOnToStep = 0x20, 40 SetKeyOffToStep = 0x21, 41 EraseStep = 0x22, 42 SetInstrumentInStep = 0x23, 43 EraseInstrumentInStep = 0x24, 44 SetVolumeToStep = 0x25, 45 EraseVolumeInStep = 0x26, 46 SetEffectIDToStep = 0x27, 47 EraseEffectInStep = 0x28, 48 SetEffectValueToStep = 0x29, 49 EraseEffectValueInStep = 0x2a, 50 InsertStep = 0x2b, 51 DeletePreviousStep = 0x2c, 52 PasteCopiedDataToPattern = 0x2d, 53 EraseCellsInPattern = 0x2e, 54 PasteMixCopiedDataToPattern = 0x2f, 55 TransposeNoteInPattern = 0x30, 56 ChangeValuesInPattern = 0x31, 57 ExpandPattern = 0x34, 58 ShrinkPattern = 0x35, 59 SetEchoBufferAccess = 0x36, 60 InterpolatePattern = 0x37, 61 ReversePattern = 0x38, 62 ReplaceInstrumentInPattern = 0x39, 63 PasteOverwriteCopiedDataToPattern = 0x3a, 64 PasteInsertCopiedDataToPattern = 0x3b, 65 66 // 0x4*: Order list 67 SetPatternToOrder = 0x40, 68 InsertOrderBelow = 0x41, 69 DeleteOrder = 0x42, 70 PasteCopiedDataToOrder = 0x43, 71 DuplicateOrder = 0x44, 72 MoveOrder = 0x45, 73 ClonePatterns = 0x46, 74 CloneOrder = 0x47 75 }; 76