Skip to content

Commit 6ab3c7a

Browse files
committed
Simple fix for high CPU load
1 parent 3334b7a commit 6ab3c7a

File tree

8 files changed

+188
-219
lines changed

8 files changed

+188
-219
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Changelog
2+
3+
## 0.6.3 (2024-08-112)
4+
This release includes a simple patch for high CPU load. Conttributed by @crop2000.

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Midir support a range of platforms and backends, such as:
1414
- ALSA (Linux)
1515
- WinMM (Windows)
1616
- CoreMIDI (MacOS, iOS)
17-
- WinRT (Windows 8+),
18-
- Jack (Linux, macOS)
17+
- WinRT (Windows 8+),
18+
- Jack (Linux, macOS)
1919

2020
Using WinRT or Jack requires special feature flags enabled. See the [midir GitHub](https://github.com/Boddlnagg/midir) and [create docs](https://docs.rs/crate/midir/latest) for more details.
2121

@@ -74,7 +74,7 @@ Midiex.send_msg(piano, note_off)
7474

7575
## Getting started
7676

77-
### Platforms with precompiled binaries
77+
### Platforms with precompiled binaries
7878
Since v0.6, Midiex uses [Rustler Precompiled](https://dashbit.co/blog/rustler-precompiled) to provide precompiled binaries on the following platforms:
7979

8080
- Apple Mac:
@@ -102,14 +102,14 @@ The package can be installed by adding midiex to your list of dependencies in mi
102102
```
103103
def deps do
104104
[
105-
{:midiex, "~> 0.6.1"}
105+
{:midiex, "~> 0.6.2"}
106106
]
107107
End
108108
```
109109

110110
### Using within LiveBook and IEx
111111
```
112-
Mix.install([{:midiex, "~> 0.6.1"}])
112+
Mix.install([{:midiex, "~> 0.6.2"}])
113113
```
114114

115115
#### LiveBook tour
@@ -119,6 +119,3 @@ Also see the introductory tour in LiveBook at [/livebook/midiex_notebook.livemd]
119119

120120
## Documentation
121121
The docs can be found at https://hexdocs.pm/midiex.
122-
123-
124-

livebook/midiex_notebook.livemd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# MIDIex notebook
44

55
```elixir
6-
Mix.install([{:midiex, "~> 0.6.1"}])
6+
Mix.install([{:midiex, "~> 0.6.2"}])
77
```
88

99
<!-- livebook:{"output":true} -->
1010

1111
```
1212
* Getting midiex (https://github.com/haubie/midiex.git)
13-
remote: Enumerating objects: 717, done.
14-
remote: Counting objects: 100% (174/174), done.
15-
remote: Compressing objects: 100% (87/87), done.
16-
remote: Total 717 (delta 79), reused 139 (delta 52), pack-reused 543
13+
remote: Enumerating objects: 717, done.
14+
remote: Counting objects: 100% (174/174), done.
15+
remote: Compressing objects: 100% (87/87), done.
16+
remote: Total 717 (delta 79), reused 139 (delta 52), pack-reused 543
1717
origin/HEAD set to main
1818
Resolving Hex dependencies...
1919
Resolution completed in 0.257s

mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Midiex.MixProject do
22
use Mix.Project
33

4-
@version "0.6.2-dev"
4+
@version "0.6.2"
55
@dev? String.ends_with?(@version, "-dev")
66
@force_build? System.get_env("MIDIEX_BUILD") in ["1", "true"]
77

@@ -23,6 +23,7 @@ defmodule Midiex.MixProject do
2323
assets: "assets",
2424
extras: [
2525
"README.md",
26+
"CHANGELOG.md",
2627
"BUILDING.md",
2728
"livebook/midiex_notebook.livemd",
2829
{:"LICENSE", [title: "License (MIT)"]},

native/midiex/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native/midiex/Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "midiex"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
authors = []
55
edition = "2021"
66

@@ -10,10 +10,13 @@ path = "src/lib.rs"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
13-
rustler = { version = "0.29", default-features = false, features = ["derive", "nif_version_2_15"] }
13+
rustler = { version = "0.29", default-features = false, features = [
14+
"derive",
15+
"nif_version_2_15",
16+
] }
1417
midir = "0.9.1"
1518
lazy_static = "1.4.0"
1619

1720
[target.'cfg(target_os = "macos")'.dependencies]
1821
core-foundation = "0.9.3"
19-
coremidi = "0.7.0"
22+
coremidi = "0.7.0"

0 commit comments

Comments
 (0)