Skip to content

Commit

Permalink
refactor(drums): reorder tom functions
Browse files Browse the repository at this point in the history
  • Loading branch information
domi7777 committed Dec 20, 2024
1 parent ca28ce2 commit ebbf394
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/samples/drums/toms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ export function triggerTom(volume = 50, settings = defaults) {
osc.stop(time + settings.decayTime + 0.02);
}

export function playLowTom(volume = 100) {
triggerTom(volume, {
frequency: 180, // Lowest frequency
decayTime: 0.35, // Longest decay
pitchDecay: 0.15, // Slowest pitch decay
frequencyDrop: 0.4 // Largest frequency drop
export function playHighTom(volume = 100) {
triggerTom(volume, {
frequency: 300, // Highest frequency
decayTime: 0.3, // Shortest decay
pitchDecay: 0.1, // Fast pitch decay
frequencyDrop: 0.3 // Moderate frequency drop
});
}

Expand All @@ -74,11 +74,11 @@ export function playMidTom(volume = 100) {
});
}

export function playHighTom(volume = 100) {
triggerTom(volume, {
frequency: 300, // Highest frequency
decayTime: 0.3, // Shortest decay
pitchDecay: 0.1, // Fast pitch decay
frequencyDrop: 0.3 // Moderate frequency drop
export function playLowTom(volume = 100) {
triggerTom(volume, {
frequency: 180, // Lowest frequency
decayTime: 0.35, // Longest decay
pitchDecay: 0.15, // Slowest pitch decay
frequencyDrop: 0.4 // Largest frequency drop
});
}

0 comments on commit ebbf394

Please sign in to comment.