Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Rasgueado pattern audio generation #1846

Merged
merged 2 commits into from
Feb 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src.csharp/AlphaTab/Core/TypeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ public static KeyValuePair<TKey, TValue> CreateMapEntry<TKey, TValue>(TKey key,
return new KeyValuePair<TKey, TValue>(key, value);
}

public static KeyValuePair<TKey, IList<TListItem>> CreateMapEntry<TKey, TListItem>(TKey key, AlphaTab.Collections.List<TListItem> value)
{
return new KeyValuePair<TKey, IList<TListItem>>(key, value);
}

public static string ToInvariantString(this double num, int radix)
{
if (radix == 16)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,11 @@ public class DoubleList : IDoubleIterable {
return value
}
}


internal fun reduce(operation: (acc: Double, v: Double) -> Double, initial:Double): Double {
var accumulator = initial
for (element in _items) accumulator = operation(accumulator, element)
return accumulator
}
}
Loading