Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
v1.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sciss committed Jul 23, 2017
1 parent 3a1a229 commit fded7ae
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ The latest API docs are available here: https://iem-projects.github.io/sysson/la

We are now publishing artifacts to Maven Central:

"at.iem" %% "sysson" % "1.15.0"
"at.iem" %% "sysson" % "1.16.0"

2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.typesafe.sbt.packager.linux.LinuxPackageMapping

lazy val baseName = "SysSon"
lazy val baseNameL = baseName.toLowerCase
lazy val projectVersion = "1.16.0-SNAPSHOT"
lazy val projectVersion = "1.16.0"
lazy val mimaVersion = "1.16.0"

lazy val commonSettings = Seq(
Expand Down
2 changes: 1 addition & 1 deletion src/debian/SysSon.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Desktop Entry]
Name=SysSon
Version=1.16.0-SNAPSHOT
Version=1.16.0
GenericName=SysSon
Comment=SysSon Sonification Environment
Exec=/usr/share/sysson/bin/sysson
Expand Down
26 changes: 18 additions & 8 deletions src/main/scala/at/iem/sysson/graph/Calendar.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,38 @@ object Calendar {

/** Year. This is an absolute fractional value, such as 1990.2,
* which can be truncated using `.floor`.
*
* The precision is 0.5 days due to a simplification that
* bases the year on 365.2422 days. It is positively biased
* so that `.floor` should always give the correct year for
* January 1st.
*/
final case class Year(time: Dim.Play) extends GE {

override def productPrefix = s"Calendar$$Year"
override def productPrefix = s"Calendar$$Year"

override def toString = s"Calendar.Year($time)"
override def toString = s"Calendar.Year($time)"

protected def timeBase = 'y'
protected def modulo = 0
protected def timeBase = 'y'
protected def modulo = 0
}

/** Month in year. __Note:__ this counts from zero (January) to eleven (December).
* This is a fractional value, such as 2.54,
* which can be truncated using `.floor`.
*
* The precision is 0.5 days due to a simplification that
* bases the year on 365.2422 days. It is positively biased
* so that `.floor` should always give the correct month for
* January 1st.
*/
final case class Month(time: Dim.Play) extends GE {

override def productPrefix = s"Calendar$$Month"
override def productPrefix = s"Calendar$$Month"

override def toString = s"Calendar.Month($time)"
override def toString = s"Calendar.Month($time)"

protected def timeBase = 'M'
protected def modulo = 12
protected def timeBase = 'M'
protected def modulo = 12
}
}

0 comments on commit fded7ae

Please sign in to comment.