Skip to content

Commit bd9240d

Browse files
committed
Removed midi package from this repo
1 parent b4f5567 commit bd9240d

File tree

44 files changed

+21
-1784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+21
-1784
lines changed

.github/workflows/publish.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ jobs:
3838
run: |
3939
chmod 777 ./gradlew
4040
./gradlew soundfont:publishAndReleaseToMavenCentral --no-configuration-cache
41-
./gradlew midi:publishAndReleaseToMavenCentral --no-configuration-cache

README.md

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
## Kotlin Multiplatform SoundFont library
33
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
44
[![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
5-
>:warning: This library is NOT ready for production use.:warning:
65

7-
Library for [sample-based synthesis](https://en.wikipedia.org/wiki/Sample-based_synthesis "Sample-based synthesis") to play [MIDI](https://en.wikipedia.org/wiki/MIDI "MIDI") files. The library is split in two modules:
8-
* **Midi module**: Allows to read and write standard MIDI files and parsing/encoding MIDI messages. Can generate F32 audio data from MIDI messages.
9-
* **SoundFont module**: Allows to load `.sf2` files from filesystem and from memory. Is basically a KMP wrapper around [TinySoundFont](https://github.com/schellingb/TinySoundFont) library.
6+
Library for [sample-based synthesis](https://en.wikipedia.org/wiki/Sample-based_synthesis "Sample-based synthesis") to generate audio data from [MIDI](https://en.wikipedia.org/wiki/MIDI "MIDI") files.
7+
The library allows to load `.sf2` files from filesystem and from memory. Is basically a KMP wrapper around [TinySoundFont](https://github.com/schellingb/TinySoundFont) library.
108

11-
The goal of this library is to allow operations on MIDI files and generating audio in Kotlin Multiplatform projects. The library has `batteries-included` so no configuration is required.
9+
The goal of this library is to allow operations on .sf2 files and generating audio in Kotlin Multiplatform projects.
10+
The library has `batteries-included` so no configuration is required.
1211

1312
Non goals:
1413
* <b>Audio playback</b>
@@ -31,31 +30,16 @@ This library is stored on Maven Central repository. To add library to Your proje
3130
mikrosoundfont = "<latest_version>"
3231
3332
[libraries]
34-
mikrosoundfont-midi = { module = "io.github.lemcoder.mikrosoundfont:midi", version.ref = "mikrosoundfont" }
35-
mikrosoundfont-soundfont = { module = "io.github.lemcoder.mikrosoundfont:soundfont", version.ref = "mikrosoundfont" }
33+
mikrosoundfont = { module = "io.github.lemcoder.mikrosoundfont:soundfont", version.ref = "mikrosoundfont" }
3634
```
3735
___
3836
### Usage
3937
```
40-
val midiBuffer // .mid file bytes
4138
val sfBuffer // .sf2 file bytes
4239
43-
val midiMessages = MidiFileParser(midiBuffer).parse().getMessages()
44-
val soundFont = MikroSoundFont.load(sfBuffer)
45-
46-
val sampleRate = 44_100
47-
val audioBytes = MidiSequencer(soundFont, 44_100).apply {
48-
loadMidiEvents(midiMessages)
49-
}.generate()
50-
51-
// use audioBytes (e.g. write to .wav file)
40+
val soundFont = MikroSoundFont.load(sfBuffer)
5241
```
5342

5443
## License
5544

5645
This project is licensed under the Apache 2.0 License - see the [LICENSE.md](LICENSE.md) file for details
57-
58-
59-
### Useful resources:
60-
* [Sandard MIDI files specification](https://drive.google.com/file/d/1t4jcCCKoi5HMi7YJ6skvZfKcefLhhOgU/view?u)
61-
* [Summary of MIDI messages](https://drive.google.com/file/d/1I-bH8zhfS37fnLzV-xnonOCYZycaGzbn/view)

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
[versions]
2-
lib = "0.2.0"
2+
lib = "1.0.0"
33

44
agp = "8.7.3"
5-
kotlin = "2.1.0"
6-
kotlinxIo = "0.5.4"
5+
kotlin = "2.1.10"
6+
kotlinxIo = "0.7.0"
77

88
android-runner = "1.6.2"
99
rules = "1.6.1"
1010

11-
android-compileSdk = "34"
11+
android-compileSdk = "35"
1212
android-minSdk = "24"
13-
maven-publish = "0.28.0"
13+
maven-publish = "0.30.0"
1414
konanplugin = "1.0.0"
1515

1616
[libraries]

midi/build.gradle.kts

Lines changed: 0 additions & 129 deletions
This file was deleted.
-519 KB
Binary file not shown.
-138 Bytes
Binary file not shown.

midi/src/androidInstrumentedTest/kotlin/io/github/lemcoder/mikrosoundfont/io/FileTest.kt

Lines changed: 0 additions & 23 deletions
This file was deleted.

midi/src/androidInstrumentedTest/kotlin/io/github/lemcoder/mikrosoundfont/io/midi/MidiFileHeaderTest.kt

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)