/// <inheritdoc /> public void DumpVocalEffects(IPatchPart vocalFx, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.VocalEffect"); output.Send(SysExUtils.GetMessage(_vfxEffectsOffset, vocalFx.GetBytes())); } }
/// <inheritdoc /> public void SetAutoNote(bool value, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Common.AutoNote"); output.Send(SysExUtils.GetMessage(_autoNoteOffset, new[] { ByteUtils.BooleanToByte(value) })); } }
/// <inheritdoc /> public void DumpEffect(EffectPatch patch, Effect effect, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump($"Dumping {effect}"); output.Send(SysExUtils.GetMessage(EffectOffset(effect), patch.GetBytes())); } }
/// <inheritdoc /> public void DumpCommon(IPatchPart common, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Common"); output.Send(SysExUtils.GetMessage(_commonOffset, common.GetBytes())); } }
/// <inheritdoc /> public void DumpPartial(Partial partial, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump($"Dumping Patch.Partial[{partial.Key}]"); output.Send(SysExUtils.GetMessage(PartialAddressOffset(partial.Key), partial.GetBytes())); } }
/// <inheritdoc /> public void DumpModifiers(Modifiers modifiers, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Modifiers"); output.Send(SysExUtils.GetMessage(ModifiersAddressOffset, modifiers.GetBytes())); } }
/// <inheritdoc /> public void Dump(IPatch analogPatch, int deviceId) { using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch"); output.Send(SysExUtils.GetMessage(_addressOffset, analogPatch.GetBytes())); } }
/// <inheritdoc /> public void Dump(IPatch patch, int deviceId) { var vfxPatch = (CommonAndVocalEffectPatch)patch; using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Common"); output.Send(SysExUtils.GetMessage(_commonOffset, vfxPatch.Common.GetBytes())); _logger.DataDump("Dumping Patch.VocalEffect"); output.Send(SysExUtils.GetMessage(_vfxEffectsOffset, vfxPatch.VocalEffect.GetBytes())); _logger.DataDump("Dumping Patch.Common.AutoNote"); output.Send(SysExUtils.GetMessage(_autoNoteOffset, new[] { ByteUtils.BooleanToByte(vfxPatch.Common.AutoNote) })); } }
/// <inheritdoc /> public void Dump(IPatch patch, int deviceId) { var drumPatch = (Patch)patch; using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Common"); output.Send(SysExUtils.GetMessage(_commonAddressOffset, drumPatch.Common.GetBytes())); foreach (var partial in drumPatch.Partials) { _logger.DataDump($"Dumping Patch.Partial[{partial.Key}]"); output.Send(SysExUtils.GetMessage(PartialAddressOffset(partial.Key), partial.Value.GetBytes())); } } }
/// <inheritdoc /> public void Dump(IPatch patch, int deviceId) { var effectPatch = (Patch)patch; using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Effect 1"); output.Send(SysExUtils.GetMessage(EffectOffset(Effect.Effect1), effectPatch.Effect1.GetBytes())); _logger.DataDump("Dumping Effect 2"); output.Send(SysExUtils.GetMessage(EffectOffset(Effect.Effect2), effectPatch.Effect2.GetBytes())); _logger.DataDump("Dumping Delay"); output.Send(SysExUtils.GetMessage(EffectOffset(Effect.Delay), effectPatch.Delay.GetBytes())); _logger.DataDump("Dumping Reverb"); output.Send(SysExUtils.GetMessage(EffectOffset(Effect.Reverb), effectPatch.Reverb.GetBytes())); } }
/// <inheritdoc /> public void Dump(IPatch patch, int deviceId) { var digitalPatch = (Patch)patch; using (var output = new OutputDevice(deviceId)) { _logger.DataDump("Dumping Patch.Common"); output.Send(SysExUtils.GetMessage(CommonAddressOffset, digitalPatch.Common.GetBytes())); _logger.DataDump("Dumping Patch.PartialOne"); output.Send(SysExUtils.GetMessage(PartialAddressOffset(DigitalPartial.First), digitalPatch.PartialOne.GetBytes())); _logger.DataDump("Dumping Patch.PartialTwo"); output.Send(SysExUtils.GetMessage(PartialAddressOffset(DigitalPartial.Second), digitalPatch.PartialTwo.GetBytes())); _logger.DataDump("Dumping Patch.PartialThree"); output.Send(SysExUtils.GetMessage(PartialAddressOffset(DigitalPartial.Third), digitalPatch.PartialThree.GetBytes())); _logger.DataDump("Dumping Patch.Modifiers"); output.Send(SysExUtils.GetMessage(ModifiersAddressOffset, digitalPatch.Modifiers.GetBytes())); } }