Skip to content

Commit 6a2df3c

Browse files
committed
Added trumpet instruments, added NBS v6 support
1 parent d350066 commit 6a2df3c

26 files changed

Lines changed: 15 additions & 7 deletions

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ To download the latest dev version, go to [GitHub Actions](https://github.com/Ra
77
Using it is very simple, just run the jar file, and it will start a user interface. Detailed instructions can be found in the [Usage](#usage) section.
88

99
## Features
10-
- Reads .nbs, .mcsp2, .mid, .txt and .notebot files
11-
- Can export all of the above as .nbs, .mp3, .wav and .aif files
10+
- Can import .nbs, .mcsp2, .mid, .txt and .notebot files
11+
- Can export all of the above as .nbs, .txt, .mcsp2, .mp3 and .wav files
1212
- Work with multiple songs at once (Batch processing)
1313
- High performance and accurate song player
1414
- Lag free playback of very large songs
@@ -18,8 +18,8 @@ Using it is very simple, just run the jar file, and it will start a user interfa
1818
- Supports velocity and panning
1919
- Can handle Black MIDI files
2020
- Supports all NBS versions
21-
- Version 0 - 5
22-
- Supports undocumented features like Tempo Changers
21+
- Version 0 - 6
22+
- Supports Tempo Changers
2323
- Many tools for manipulating songs
2424
- Optimize songs for use in Minecraft (Transposing, Resampling)
2525
- Resampling songs with a different TPS

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repositories {
1717
}
1818

1919
dependencies {
20-
includeInJar "net.raphimc:NoteBlockLib:3.2.0-20260212.215343-9"
20+
includeInJar "net.raphimc:NoteBlockLib:3.2.0-20260320.211337-10"
2121
includeInJar "net.raphimc:audio-mixer:2.3.1-20260203.210117-1"
2222
includeInJar "org.jcraft:jorbis:0.0.17"
2323
includeInJar "com.formdev:flatlaf:3.7.1"

src/main/java/net/raphimc/noteblocktool/audio/SoundMap.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public class SoundMap {
3636
private static final Map<String, URL> ALL_SOUND_LOCATIONS = new HashMap<>();
3737

3838
static {
39-
INSTRUMENT_SOUNDS.put(MinecraftInstrument.HARP, "harp.ogg");
40-
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BASS, "bass.ogg");
39+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.HARP, "harp2.ogg");
40+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BASS, "bassattack.ogg");
4141
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BASS_DRUM, "bd.ogg");
4242
INSTRUMENT_SOUNDS.put(MinecraftInstrument.SNARE, "snare.ogg");
4343
INSTRUMENT_SOUNDS.put(MinecraftInstrument.HAT, "hat.ogg");
@@ -52,6 +52,10 @@ public class SoundMap {
5252
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BIT, "bit.ogg");
5353
INSTRUMENT_SOUNDS.put(MinecraftInstrument.BANJO, "banjo.ogg");
5454
INSTRUMENT_SOUNDS.put(MinecraftInstrument.PLING, "pling.ogg");
55+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.TRUMPET, "trumpet.ogg");
56+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.TRUMPET_EXPOSED, "trumpet_exposed.ogg");
57+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.TRUMPET_OXIDIZED, "trumpet_oxidized.ogg");
58+
INSTRUMENT_SOUNDS.put(MinecraftInstrument.TRUMPET_WEATHERED, "trumpet_weathered.ogg");
5559

5660
try {
5761
SoundMap.reload(new File(System.getProperty("user.home"), "Minecraft Note Block Studio/Data/Sounds"));

src/main/java/net/raphimc/noteblocktool/frames/visualizer/DropRenderer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public DropRenderer(final AudioSystemSongPlayer songPlayer) {
108108
this.instrumentColors.put(MinecraftInstrument.BIT, Color.GREEN.darker(0.8F));
109109
this.instrumentColors.put(MinecraftInstrument.BANJO, Color.RED.darker());
110110
this.instrumentColors.put(MinecraftInstrument.PLING, Color.DARK_GRAY);
111+
this.instrumentColors.put(MinecraftInstrument.TRUMPET, Color.ORANGE.darker(0.9F));
112+
this.instrumentColors.put(MinecraftInstrument.TRUMPET_EXPOSED, Color.ORANGE.darker(0.7F));
113+
this.instrumentColors.put(MinecraftInstrument.TRUMPET_WEATHERED, Color.GREEN.darker(0.4F));
114+
this.instrumentColors.put(MinecraftInstrument.TRUMPET_OXIDIZED, Color.GREEN.darker(0.2F));
111115

112116
this.customInstrumentColors = new IdentityHashMap<>();
113117
final NbsCustomInstrument[] customInstruments = SongUtil.getUsedNbsCustomInstruments(this.songPlayer.getSong()).toArray(NbsCustomInstrument[]::new);
-5.51 KB
Binary file not shown.
-5.35 KB
Binary file not shown.
6.23 KB
Binary file not shown.
639 Bytes
Binary file not shown.
180 Bytes
Binary file not shown.
-5.15 KB
Binary file not shown.

0 commit comments

Comments
 (0)