基础
本模组添加了播放 ABC 格式乐谱文件的功能。
默认情况下,本模组附带了几首 ABC 曲目,并添加了 Starbound 中的 32 种乐器(已获许可)。
Clef 会读取 /mods/clef/abc 文件夹中的所有 ABC 文件,以及 /mods/clef/instruments 文件夹中的乐器,因此欢迎添加您自己的 ABC 曲目或乐器包。此外,Clef 还能够读取 .zip 格式的 Starbound 模组包。
获取乐器
在游戏中,若要查看创造模式下的乐器,请打开物品栏并进入“乐器”创造标签页。在那里,您将找到 Clef 能够加载的所有乐器。
在生存模式中,有三种(可配置)方式可以获得乐器:结构中的箱子战利品、生物掉落物,以及乐器播放器(稍后详细介绍)。
乐器分为双手和单手两种。根据默认配置,所有双手乐器都会变为单手,以便您在冒险时将它们放在副手槽中!
使用乐器
手持选定的乐器时,按下使用键会弹出一个 GUI 界面,允许您选择歌曲、单独演奏或在乐队中演奏(可选择同步到他们的播放时间或轨道),强制模组重新加载所有 ABC 文件或乐器,最后还有一个播放按钮。在歌曲列表中双击歌曲将立即开始播放。
演奏乐器时,如果是双手乐器,则双手必须空闲才能演奏。如果是单手乐器,主手将被优先处理并演奏该乐器。要停止演奏,只需再次使用该乐器或用乐器攻击即可。
右键点击乐队名称可循环切换当前正在演奏的可用乐队。
请注意,如果您有大量 ABC 文件,请勿重新加载它们,这会导致游戏暂时卡顿。
鼠标悬停在乐器上并按住 Shift 键,可以告诉您该乐器来自哪个包,以及该乐器的物品名称是什么。
乐器播放器
乐器播放器的合成配方如下:木板、一个箱子、一个音符盒和一个红石火把。
放置后,用乐器右键点击方块以将乐器放入其中。一旦施加红石信号,乐器播放器可以同时容纳 9 种乐器进行演奏。
再次右键点击它,您将看到一个与乐器 GUI 类似的界面,但具有一些附加功能,最明显的是右下角的乐器播放器存储空间。点击那里的任何乐器会将乐器从方块顶部弹出。
歌曲列表底部还有两个按钮,允许您添加和查看播放列表。当您查看播放列表时,您可以看到标准的播放列表设置,如随机播放、重复等。
使用乐器播放器制作乐器
要使用乐器播放器制作新乐器,您需要用 9 种乐器填满乐器播放器,并用命名为所需乐器物品名称的名称牌右键点击它。要获取乐器的物品名称,请在物品栏中将鼠标悬停在乐器上并按住 Shift 键。此物品名称与乐器的名称不同。
您只能制作已加载到您的游戏中或服务器已加载(可配置)的乐器。
获取更多曲目和乐器
Clef 的工作原理是,曲目和乐器存在于模组之外的实际文件中。因此,您可以轻松地将任何想要在-game 中收听的 ABC 文件放入 abc 文件夹,或者通过在 instruments 文件夹中添加 Starbound 模组包(zip 格式)来添加新乐器。
网上有可用的 ABC 库,特别是因为《指环王Online》和 Starbound 都能播放这些文件。
也有可能解包 pak 格式的 Starbound 模组并将其重新压缩为 zip 格式供 Clef 读取。只需确保文件结构遵循 Starbound 的文件结构,并且存档的根目录包含 sfx 和 items 文件夹即可。
已知问题
ABC 文件可能会稍微走调、节奏不准或播放错误
稍微走调:我尽力识别了这个问题,但我认为这是声音系统在调整音调方面遇到困难所致。
稍微节奏不准:Minecraft 每秒限制为 20 刻。我发现的一些 ABC 文件的音符比这短得多。稍微节奏不准是我能做到的最好结果。
播放错误:我使用的 ABC 解析器是我从头编写的,因此在以某种方式解析某些文件时肯定会出现一些问题。如果旋律播放错误,请给我发一条消息(连同 abc 文件),我会看看我能做些什么。目前,该模组不支持每个 ABC 文件多于一个旋律,也不支持 ABC 中的段落/声部。
暂停游戏不会暂停特定旋律
我认为这是 Minecraft 的一个特性。只需取消暂停并重新暂停游戏,直到旋律暂停为止。
在 GitHub 上报告您发现的其他问题。
Basics
This mod adds the ability to have instruments which plays ABC files.
By default the mod comes with several ABC tracks, and also adds the 32 instruments available in Starbound (with permission).
Clef reads any ABC files in the /mods/clef/abc folder, and instruments in the /mods/clef/instruments folder, so you are welcome to add your own ABC tracks or Instrument Packs. As an added bonus, Clef is also able to read Starbound mod packs in a .zip format.
Getting Instruments
Once in-game, to view the instruments in creative, open up the inventory and open up the Instruments creative tab. There, you will find all the instruments that Clef was able to load.
In survival though, there are three (configurable) ways to get instruments. Chest loot from structures, Mob drops, and the Instrument Player (more on the player later)
Instruments can be either two handed or one handed. By default configs, all two handed instruments will be one handed, to allow you to hold it in your off-hand slot whilst you adventure around!
Using Instruments
With your chosen instrument in hand, press the use key and a GUI would pop up, allowing you to select a song, play solo or in a band (with options to sync to their play time or their track), and to force the mod to reload all the ABC files or Instruments, and finally a Play button. Double clicking a song in the song list will immediately begin playing it.
Whilst playing an instrument, if the instrument is two handed, both hands must be free to play them. If they are one handed, the main hand will be prioritised and that will be played. To stop playing, merely use the instrument again or attack with the instrument.
Right clicking the Band Name will cycle through the available bands currently playing.
Bear in mind not to reload your ABC files if you have a significant number of them, it will cause the game to stall momentarily.
Holding shift whilst mousing over the instrument will tell you what pack the instrument is from, and what the item name for the instrument is.
The Instrument Player
The crafting recipe for the Instrument Player is as such: Planks, a chest, a note block, and a redstone torch.
Once placed, right click the block with an instrument to place the instrument inside. The Instrument Player has enough space for 9 instruments to be played simultaneously, once redstone power is applied.
Right click it again and you will see a similar GUI to the instrument GUI, but with some added features, most notably the storage space of the Instrument Player on the bottom right. Clicking any of the instruments there will eject the instrument on the top of the block.
There are also two buttons on the bottom of the song list, to allow you to add and view the playlist. Once you are viewing the playlist you will be able to see standard playlist settings such as shuffle, repeat, etc.
Making instruments with the Instrument Player
To make a new instrument with the instrument player, you need to fill up the Instrument Player with 9 instruments, and right click it with a name tag named as the item name of the instrument you want. To get the item name of the instrument, mouse over your instrument in the inventory and hold Shift. This item name is different from the name of the instrument.
You can only make instruments that either you have loaded to your game, or the server has loaded (configurable).
Getting more tracks and instruments
The way Clef works, is that tracks and instruments exist in actual files outside of the mod. As a result, you can easily drop any ABC file that you want to listen to in-game into the abc folder, or you can add new instruments by adding Starbound mod packs (in zip format) in the instruments folder.
There are ABC libraries available online, especially since Lord of The Rings Online and Starbound are both able to play these files.
It is also possible to unpack Starbound mods in pak format and rezip it into a zip format for Clef to read. Just be sure that the file structure follows Starbound's file structure and the root of the archive are where the sfx, items folders belong.
Known issues
The ABC files may play a little off key or off tempo or play incorrectly
Playing a little off key: I've tried my best to identify this, but I'm chalking this up to the Sound System having trouble adjusting the pitch of the tunes
Playing a little off tempo: Minecraft has a limit of 20 ticks per second. Some of the ABC files I've found has notes much shorter than that. Slightly off tempo is the best I can do.
Playing incorrectly: The ABC parser that I'm using, I wrote from scratch, so there's bound to be some problems with parsing some files one way or another. If the tune plays incorrectly, drop me a message (along with the abc file) and I'll see what I can do. At the moment the mod doesn't support more than one tune per ABC and it doesn't support verses/voices in the ABC.
Pausing the game doesn't pause a specific tune
I think it's a Minecraft thing. Just unpause and repause the game until the tune pauses.
Report other issues you've found on GitHub.
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Clef
10.1.0:
- 添加了由 ichttt 制作的 Midi 解析器
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
模组
让你能够在世界中的任何位置定位结构。
模组
对 Minecraft 的沙漠神殿进行了全面重新设计!
模组
感受痛苦!
评论 0
登录后参与评分
还没有评论,来抢沙发吧